package com.bsoft.gol.hcs.specialist.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by ChenJij on 2021/10/25.
 */
@Entity
@Table(name = "fus_answer_treatment_info")
public class FusAnswerTreatmentInfo {
    private long fusAnswerTreatmentInfoId;
    private String userInfoId;
    private String titleId;
    private Date createTime;
    private String patientId;
    private String cardType;
    private String cardNumber;
    private String patientMedicalCardNumber;
    private Integer patientMedicalCardType;
    private String treatmentCode;
    private String treatmentName;
    private Date treatmentTime;
    private long diseaseTypeId;
    private String diseaseTypeName;
    private Date answerTime;
    private String reportId;

    @Id
    @Column(name = "fus_answer_treatment_info_id")
    public long getFusAnswerTreatmentInfoId() {
        return fusAnswerTreatmentInfoId;
    }

    public void setFusAnswerTreatmentInfoId(long fusAnswerTreatmentInfoId) {
        this.fusAnswerTreatmentInfoId = fusAnswerTreatmentInfoId;
    }

    @Basic
    @Column(name = "user_info_id")
    public String getUserInfoId() {
        return userInfoId;
    }

    public void setUserInfoId(String userInfoId) {
        this.userInfoId = userInfoId;
    }

    @Basic
    @Column(name = "title_id")
    public String getTitleId() {
        return titleId;
    }

    public void setTitleId(String titleId) {
        this.titleId = titleId;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "patient_id")
    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    @Basic
    @Column(name = "card_type")
    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    @Basic
    @Column(name = "card_number")
    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Basic
    @Column(name = "patient_medical_card_number")
    public String getPatientMedicalCardNumber() {
        return patientMedicalCardNumber;
    }

    public void setPatientMedicalCardNumber(String patientMedicalCardNumber) {
        this.patientMedicalCardNumber = patientMedicalCardNumber;
    }

    @Basic
    @Column(name = "patient_medical_card_type")
    public Integer getPatientMedicalCardType() {
        return patientMedicalCardType;
    }

    public void setPatientMedicalCardType(Integer patientMedicalCardType) {
        this.patientMedicalCardType = patientMedicalCardType;
    }

    @Basic
    @Column(name = "treatment_code")
    public String getTreatmentCode() {
        return treatmentCode;
    }

    public void setTreatmentCode(String treatmentCode) {
        this.treatmentCode = treatmentCode;
    }

    @Basic
    @Column(name = "treatment_name")
    public String getTreatmentName() {
        return treatmentName;
    }

    public void setTreatmentName(String treatmentName) {
        this.treatmentName = treatmentName;
    }

    @Basic
    @Column(name = "treatment_time")
    public Date getTreatmentTime() {
        return treatmentTime;
    }

    public void setTreatmentTime(Date treatmentTime) {
        this.treatmentTime = treatmentTime;
    }

    @Basic
    @Column(name = "disease_type_id")
    public long getDiseaseTypeId() {
        return diseaseTypeId;
    }

    public void setDiseaseTypeId(long diseaseTypeId) {
        this.diseaseTypeId = diseaseTypeId;
    }

    @Basic
    @Column(name = "disease_type_name")
    public String getDiseaseTypeName() {
        return diseaseTypeName;
    }

    public void setDiseaseTypeName(String diseaseTypeName) {
        this.diseaseTypeName = diseaseTypeName;
    }

    @Basic
    @Column(name = "answer_time")
    public Date getAnswerTime() {
        return answerTime;
    }

    public void setAnswerTime(Date answerTime) {
        this.answerTime = answerTime;
    }

    @Basic
    @Column(name = "report_id")
    public String getReportId() {
        return reportId;
    }

    public void setReportId(String reportId) {
        this.reportId = reportId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FusAnswerTreatmentInfo that = (FusAnswerTreatmentInfo) o;

        if (fusAnswerTreatmentInfoId != that.fusAnswerTreatmentInfoId) return false;
        if (diseaseTypeId != that.diseaseTypeId) return false;
        if (userInfoId != null ? !userInfoId.equals(that.userInfoId) : that.userInfoId != null) return false;
        if (titleId != null ? !titleId.equals(that.titleId) : that.titleId != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (patientId != null ? !patientId.equals(that.patientId) : that.patientId != null) return false;
        if (cardType != null ? !cardType.equals(that.cardType) : that.cardType != null) return false;
        if (cardNumber != null ? !cardNumber.equals(that.cardNumber) : that.cardNumber != null) return false;
        if (patientMedicalCardNumber != null ? !patientMedicalCardNumber.equals(that.patientMedicalCardNumber) : that.patientMedicalCardNumber != null)
            return false;
        if (patientMedicalCardType != null ? !patientMedicalCardType.equals(that.patientMedicalCardType) : that.patientMedicalCardType != null)
            return false;
        if (treatmentCode != null ? !treatmentCode.equals(that.treatmentCode) : that.treatmentCode != null)
            return false;
        if (treatmentName != null ? !treatmentName.equals(that.treatmentName) : that.treatmentName != null)
            return false;
        if (treatmentTime != null ? !treatmentTime.equals(that.treatmentTime) : that.treatmentTime != null)
            return false;
        if (diseaseTypeName != null ? !diseaseTypeName.equals(that.diseaseTypeName) : that.diseaseTypeName != null)
            return false;
        if (answerTime != null ? !answerTime.equals(that.answerTime) : that.answerTime != null) return false;
        if (reportId != null ? !reportId.equals(that.reportId) : that.reportId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (fusAnswerTreatmentInfoId ^ (fusAnswerTreatmentInfoId >>> 32));
        result = 31 * result + (userInfoId != null ? userInfoId.hashCode() : 0);
        result = 31 * result + (titleId != null ? titleId.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (patientId != null ? patientId.hashCode() : 0);
        result = 31 * result + (cardType != null ? cardType.hashCode() : 0);
        result = 31 * result + (cardNumber != null ? cardNumber.hashCode() : 0);
        result = 31 * result + (patientMedicalCardNumber != null ? patientMedicalCardNumber.hashCode() : 0);
        result = 31 * result + (patientMedicalCardType != null ? patientMedicalCardType.hashCode() : 0);
        result = 31 * result + (treatmentCode != null ? treatmentCode.hashCode() : 0);
        result = 31 * result + (treatmentName != null ? treatmentName.hashCode() : 0);
        result = 31 * result + (treatmentTime != null ? treatmentTime.hashCode() : 0);
        result = 31 * result + (int) (diseaseTypeId ^ (diseaseTypeId >>> 32));
        result = 31 * result + (diseaseTypeName != null ? diseaseTypeName.hashCode() : 0);
        result = 31 * result + (answerTime != null ? answerTime.hashCode() : 0);
        result = 31 * result + (reportId != null ? reportId.hashCode() : 0);
        return result;
    }
}